<?php

namespace App\Library\Requests\Demo;

use App\Library\Requests\Base\BaseDTORequest;

class DemoAddRequest extends BaseDTORequest
{
    public function rules(): array
    {
        return [
            'switch' => 'required|boolean',//开关
            'title' => 'required|string|max:50',//标题
            'quantity' => 'required|integer|min:0',//数量
            'remark' => 'nullable|string',//备注
        ];
    }
}
